package com.yunhui.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
/**
 * <p>
 * 商家表
 * </p>
 *
 * @author WGH
 * @since 2019-12-09
 */
public class Merchant extends Model<Merchant> {

    private static final long serialVersionUID = 1L;

    /**
     * 商家编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 企业电话
     */
    private String phone;
    /**
     * 企业邮箱
     */
    private String eamil;

    /**
     * 企业的证件照名
     */
    @TableField("imgName")
    private String imgName;

    /**
     * 企业的证件照路径
     */
    @TableField("imgUrl")
    private String imgUrl;

    /**
     * 创建时间
     */
    @TableField("createDate")
    private Date createDate;

    /**
     * 审核状态
     */
    private Integer status;

    /**
     * 账号
     */
    private String account;

    /**
     * 企业登录密码
     */
    private String password;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEamil() {
        return eamil;
    }

    public void setEamil(String eamil) {
        this.eamil = eamil;
    }

    public String getImgName() {
        return imgName;
    }

    public void setImgName(String imgName) {
        this.imgName = imgName;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Merchant{" +
        ", id=" + id +
        ", phone=" + phone +
        ", eamil=" + eamil +
        ", imgName=" + imgName +
        ", imgUrl=" + imgUrl +
        ", createDate=" + createDate +
        ", status=" + status +
        ", password=" + password +
        "}";
    }
}
